<?php
if($jQ){
   $results = array();
   foreach($searchResults as $s){
      $results[] = array(
                     'value' => $s['Gyujto']['id'],
                     'label' => $s['Gyujto']['kod'] . ' ' . $s['Gyujto']['nev']
                      );
   }
   $searchResults = $results;
}
else{
   $this->log('No jQuery! Controller: ' . $this->params['controller'] . ' action: ' . $this->params['action']);
}
print json_encode($searchResults);
?>